import { Prop, Schema, SchemaFactory } from "@nestjs/mongoose";
import { Document } from "mongoose";
export type UserDocument=User & Document
@Schema()
export class User {
    @Prop()
    username:string;
    @Prop()
    password:string;
    @Prop()
    email:string;
    @Prop()
    avator:string;
    @Prop()
    signature:string
}
export const UserSchema=SchemaFactory.createForClass(User)
